package com.tourlaid.mamagerment.action.wx

import com.tourlaid.mamagerment.ao.wx.StoreListAo
import com.tourlaid.mamagerment.entity.ResponseData
import com.tourlaid.mamagerment.vo.StoreListVo
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
import javax.annotation.Resource

/**
 * Created by xiaoyongge on 2017/7/23.
 * 首页
 */
@RestController
@RequestMapping("/tld/admin/storel")
class StoreListAction {

    @Resource
    var storeListAo: StoreListAo? = null

    @RequestMapping("/queryData.json")
    fun queryData(searchContent: String?, storeType: Int?,
                  cityName: String?, area: String?,
                  district: String?, pageNo: Int): ResponseData<MutableList<StoreListVo>> {
        val responseData = storeListAo!!.queryData(searchContent, storeType, cityName, area, district, pageNo);
        return responseData
    }

}